// src/main.js
import Vue from "vue";
import axios from "axios";

import App from "./App.vue";
import Navbar from "@/components/navbar.vue";
import Left from "@/components/left.vue";
import Footer from "@/components/footer.vue";
import Right from "@/components/right.vue";
import router from "./router"; // 引入路由
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import VueQuillEditor from "vue-quill-editor";
// require styles 引入样式
// 下面三行必须要写

Vue.use(VueQuillEditor);
Vue.config.productionTip = false;
Vue.component("Navbar", Navbar);
Vue.component("Left", Left);
Vue.component("Right", Right);
Vue.component("Footer", Footer);
Vue.prototype.$axios = axios;

Vue.use(ElementUI);
// main.js
Vue.prototype.$bus = new Vue();
new Vue({
  router, // 使用路由
  render: (h) => h(App),
}).$mount("#app");
